package com.yu.footballpromotionliveadmin.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class EventRecordsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public EventRecordsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andErnoIsNull() {
            addCriterion("erno is null");
            return (Criteria) this;
        }

        public Criteria andErnoIsNotNull() {
            addCriterion("erno is not null");
            return (Criteria) this;
        }

        public Criteria andErnoEqualTo(String value) {
            addCriterion("erno =", value, "erno");
            return (Criteria) this;
        }

        public Criteria andErnoNotEqualTo(String value) {
            addCriterion("erno <>", value, "erno");
            return (Criteria) this;
        }

        public Criteria andErnoGreaterThan(String value) {
            addCriterion("erno >", value, "erno");
            return (Criteria) this;
        }

        public Criteria andErnoGreaterThanOrEqualTo(String value) {
            addCriterion("erno >=", value, "erno");
            return (Criteria) this;
        }

        public Criteria andErnoLessThan(String value) {
            addCriterion("erno <", value, "erno");
            return (Criteria) this;
        }

        public Criteria andErnoLessThanOrEqualTo(String value) {
            addCriterion("erno <=", value, "erno");
            return (Criteria) this;
        }

        public Criteria andErnoLike(String value) {
            addCriterion("erno like", value, "erno");
            return (Criteria) this;
        }

        public Criteria andErnoNotLike(String value) {
            addCriterion("erno not like", value, "erno");
            return (Criteria) this;
        }

        public Criteria andErnoIn(List<String> values) {
            addCriterion("erno in", values, "erno");
            return (Criteria) this;
        }

        public Criteria andErnoNotIn(List<String> values) {
            addCriterion("erno not in", values, "erno");
            return (Criteria) this;
        }

        public Criteria andErnoBetween(String value1, String value2) {
            addCriterion("erno between", value1, value2, "erno");
            return (Criteria) this;
        }

        public Criteria andErnoNotBetween(String value1, String value2) {
            addCriterion("erno not between", value1, value2, "erno");
            return (Criteria) this;
        }

        public Criteria andNotnumIsNull() {
            addCriterion("notnum is null");
            return (Criteria) this;
        }

        public Criteria andNotnumIsNotNull() {
            addCriterion("notnum is not null");
            return (Criteria) this;
        }

        public Criteria andNotnumEqualTo(String value) {
            addCriterion("notnum =", value, "notnum");
            return (Criteria) this;
        }

        public Criteria andNotnumNotEqualTo(String value) {
            addCriterion("notnum <>", value, "notnum");
            return (Criteria) this;
        }

        public Criteria andNotnumGreaterThan(String value) {
            addCriterion("notnum >", value, "notnum");
            return (Criteria) this;
        }

        public Criteria andNotnumGreaterThanOrEqualTo(String value) {
            addCriterion("notnum >=", value, "notnum");
            return (Criteria) this;
        }

        public Criteria andNotnumLessThan(String value) {
            addCriterion("notnum <", value, "notnum");
            return (Criteria) this;
        }

        public Criteria andNotnumLessThanOrEqualTo(String value) {
            addCriterion("notnum <=", value, "notnum");
            return (Criteria) this;
        }

        public Criteria andNotnumLike(String value) {
            addCriterion("notnum like", value, "notnum");
            return (Criteria) this;
        }

        public Criteria andNotnumNotLike(String value) {
            addCriterion("notnum not like", value, "notnum");
            return (Criteria) this;
        }

        public Criteria andNotnumIn(List<String> values) {
            addCriterion("notnum in", values, "notnum");
            return (Criteria) this;
        }

        public Criteria andNotnumNotIn(List<String> values) {
            addCriterion("notnum not in", values, "notnum");
            return (Criteria) this;
        }

        public Criteria andNotnumBetween(String value1, String value2) {
            addCriterion("notnum between", value1, value2, "notnum");
            return (Criteria) this;
        }

        public Criteria andNotnumNotBetween(String value1, String value2) {
            addCriterion("notnum not between", value1, value2, "notnum");
            return (Criteria) this;
        }

        public Criteria andMtnoIsNull() {
            addCriterion("mtno is null");
            return (Criteria) this;
        }

        public Criteria andMtnoIsNotNull() {
            addCriterion("mtno is not null");
            return (Criteria) this;
        }

        public Criteria andMtnoEqualTo(String value) {
            addCriterion("mtno =", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoNotEqualTo(String value) {
            addCriterion("mtno <>", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoGreaterThan(String value) {
            addCriterion("mtno >", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoGreaterThanOrEqualTo(String value) {
            addCriterion("mtno >=", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoLessThan(String value) {
            addCriterion("mtno <", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoLessThanOrEqualTo(String value) {
            addCriterion("mtno <=", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoLike(String value) {
            addCriterion("mtno like", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoNotLike(String value) {
            addCriterion("mtno not like", value, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoIn(List<String> values) {
            addCriterion("mtno in", values, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoNotIn(List<String> values) {
            addCriterion("mtno not in", values, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoBetween(String value1, String value2) {
            addCriterion("mtno between", value1, value2, "mtno");
            return (Criteria) this;
        }

        public Criteria andMtnoNotBetween(String value1, String value2) {
            addCriterion("mtno not between", value1, value2, "mtno");
            return (Criteria) this;
        }

        public Criteria andEnameIsNull() {
            addCriterion("ename is null");
            return (Criteria) this;
        }

        public Criteria andEnameIsNotNull() {
            addCriterion("ename is not null");
            return (Criteria) this;
        }

        public Criteria andEnameEqualTo(String value) {
            addCriterion("ename =", value, "ename");
            return (Criteria) this;
        }

        public Criteria andEnameNotEqualTo(String value) {
            addCriterion("ename <>", value, "ename");
            return (Criteria) this;
        }

        public Criteria andEnameGreaterThan(String value) {
            addCriterion("ename >", value, "ename");
            return (Criteria) this;
        }

        public Criteria andEnameGreaterThanOrEqualTo(String value) {
            addCriterion("ename >=", value, "ename");
            return (Criteria) this;
        }

        public Criteria andEnameLessThan(String value) {
            addCriterion("ename <", value, "ename");
            return (Criteria) this;
        }

        public Criteria andEnameLessThanOrEqualTo(String value) {
            addCriterion("ename <=", value, "ename");
            return (Criteria) this;
        }

        public Criteria andEnameLike(String value) {
            addCriterion("ename like", value, "ename");
            return (Criteria) this;
        }

        public Criteria andEnameNotLike(String value) {
            addCriterion("ename not like", value, "ename");
            return (Criteria) this;
        }

        public Criteria andEnameIn(List<String> values) {
            addCriterion("ename in", values, "ename");
            return (Criteria) this;
        }

        public Criteria andEnameNotIn(List<String> values) {
            addCriterion("ename not in", values, "ename");
            return (Criteria) this;
        }

        public Criteria andEnameBetween(String value1, String value2) {
            addCriterion("ename between", value1, value2, "ename");
            return (Criteria) this;
        }

        public Criteria andEnameNotBetween(String value1, String value2) {
            addCriterion("ename not between", value1, value2, "ename");
            return (Criteria) this;
        }

        public Criteria andStimeIsNull() {
            addCriterion("stime is null");
            return (Criteria) this;
        }

        public Criteria andStimeIsNotNull() {
            addCriterion("stime is not null");
            return (Criteria) this;
        }

        public Criteria andStimeEqualTo(Date value) {
            addCriterion("stime =", value, "stime");
            return (Criteria) this;
        }

        public Criteria andStimeNotEqualTo(Date value) {
            addCriterion("stime <>", value, "stime");
            return (Criteria) this;
        }

        public Criteria andStimeGreaterThan(Date value) {
            addCriterion("stime >", value, "stime");
            return (Criteria) this;
        }

        public Criteria andStimeGreaterThanOrEqualTo(Date value) {
            addCriterion("stime >=", value, "stime");
            return (Criteria) this;
        }

        public Criteria andStimeLessThan(Date value) {
            addCriterion("stime <", value, "stime");
            return (Criteria) this;
        }

        public Criteria andStimeLessThanOrEqualTo(Date value) {
            addCriterion("stime <=", value, "stime");
            return (Criteria) this;
        }

        public Criteria andStimeIn(List<Date> values) {
            addCriterion("stime in", values, "stime");
            return (Criteria) this;
        }

        public Criteria andStimeNotIn(List<Date> values) {
            addCriterion("stime not in", values, "stime");
            return (Criteria) this;
        }

        public Criteria andStimeBetween(Date value1, Date value2) {
            addCriterion("stime between", value1, value2, "stime");
            return (Criteria) this;
        }

        public Criteria andStimeNotBetween(Date value1, Date value2) {
            addCriterion("stime not between", value1, value2, "stime");
            return (Criteria) this;
        }

        public Criteria andEtimeIsNull() {
            addCriterion("etime is null");
            return (Criteria) this;
        }

        public Criteria andEtimeIsNotNull() {
            addCriterion("etime is not null");
            return (Criteria) this;
        }

        public Criteria andEtimeEqualTo(Date value) {
            addCriterion("etime =", value, "etime");
            return (Criteria) this;
        }

        public Criteria andEtimeNotEqualTo(Date value) {
            addCriterion("etime <>", value, "etime");
            return (Criteria) this;
        }

        public Criteria andEtimeGreaterThan(Date value) {
            addCriterion("etime >", value, "etime");
            return (Criteria) this;
        }

        public Criteria andEtimeGreaterThanOrEqualTo(Date value) {
            addCriterion("etime >=", value, "etime");
            return (Criteria) this;
        }

        public Criteria andEtimeLessThan(Date value) {
            addCriterion("etime <", value, "etime");
            return (Criteria) this;
        }

        public Criteria andEtimeLessThanOrEqualTo(Date value) {
            addCriterion("etime <=", value, "etime");
            return (Criteria) this;
        }

        public Criteria andEtimeIn(List<Date> values) {
            addCriterion("etime in", values, "etime");
            return (Criteria) this;
        }

        public Criteria andEtimeNotIn(List<Date> values) {
            addCriterion("etime not in", values, "etime");
            return (Criteria) this;
        }

        public Criteria andEtimeBetween(Date value1, Date value2) {
            addCriterion("etime between", value1, value2, "etime");
            return (Criteria) this;
        }

        public Criteria andEtimeNotBetween(Date value1, Date value2) {
            addCriterion("etime not between", value1, value2, "etime");
            return (Criteria) this;
        }

        public Criteria andYearIsNull() {
            addCriterion("year is null");
            return (Criteria) this;
        }

        public Criteria andYearIsNotNull() {
            addCriterion("year is not null");
            return (Criteria) this;
        }

        public Criteria andYearEqualTo(Date value) {
            addCriterion("year =", value, "year");
            return (Criteria) this;
        }

        public Criteria andYearNotEqualTo(Date value) {
            addCriterion("year <>", value, "year");
            return (Criteria) this;
        }

        public Criteria andYearGreaterThan(Date value) {
            addCriterion("year >", value, "year");
            return (Criteria) this;
        }

        public Criteria andYearGreaterThanOrEqualTo(Date value) {
            addCriterion("year >=", value, "year");
            return (Criteria) this;
        }

        public Criteria andYearLessThan(Date value) {
            addCriterion("year <", value, "year");
            return (Criteria) this;
        }

        public Criteria andYearLessThanOrEqualTo(Date value) {
            addCriterion("year <=", value, "year");
            return (Criteria) this;
        }

        public Criteria andYearIn(List<Date> values) {
            addCriterion("year in", values, "year");
            return (Criteria) this;
        }

        public Criteria andYearNotIn(List<Date> values) {
            addCriterion("year not in", values, "year");
            return (Criteria) this;
        }

        public Criteria andYearBetween(Date value1, Date value2) {
            addCriterion("year between", value1, value2, "year");
            return (Criteria) this;
        }

        public Criteria andYearNotBetween(Date value1, Date value2) {
            addCriterion("year not between", value1, value2, "year");
            return (Criteria) this;
        }

        public Criteria andVenueIsNull() {
            addCriterion("venue is null");
            return (Criteria) this;
        }

        public Criteria andVenueIsNotNull() {
            addCriterion("venue is not null");
            return (Criteria) this;
        }

        public Criteria andVenueEqualTo(String value) {
            addCriterion("venue =", value, "venue");
            return (Criteria) this;
        }

        public Criteria andVenueNotEqualTo(String value) {
            addCriterion("venue <>", value, "venue");
            return (Criteria) this;
        }

        public Criteria andVenueGreaterThan(String value) {
            addCriterion("venue >", value, "venue");
            return (Criteria) this;
        }

        public Criteria andVenueGreaterThanOrEqualTo(String value) {
            addCriterion("venue >=", value, "venue");
            return (Criteria) this;
        }

        public Criteria andVenueLessThan(String value) {
            addCriterion("venue <", value, "venue");
            return (Criteria) this;
        }

        public Criteria andVenueLessThanOrEqualTo(String value) {
            addCriterion("venue <=", value, "venue");
            return (Criteria) this;
        }

        public Criteria andVenueLike(String value) {
            addCriterion("venue like", value, "venue");
            return (Criteria) this;
        }

        public Criteria andVenueNotLike(String value) {
            addCriterion("venue not like", value, "venue");
            return (Criteria) this;
        }

        public Criteria andVenueIn(List<String> values) {
            addCriterion("venue in", values, "venue");
            return (Criteria) this;
        }

        public Criteria andVenueNotIn(List<String> values) {
            addCriterion("venue not in", values, "venue");
            return (Criteria) this;
        }

        public Criteria andVenueBetween(String value1, String value2) {
            addCriterion("venue between", value1, value2, "venue");
            return (Criteria) this;
        }

        public Criteria andVenueNotBetween(String value1, String value2) {
            addCriterion("venue not between", value1, value2, "venue");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}